<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.ag.bean.TbMedicineConfirm"%>
<%@page import="java.util.*"%>
<%@page import="com.ag.lzw.common.DateHandeler"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>

		<base href="<%=basePath%>">
		<title>My JSP 'plan_detail.jsp' starting page</title>
		<link href="/ag/lzm/css/base.css" rel="stylesheet" type="text/css" />
		<link href="/ag/lzm/css/tab.css" rel="stylesheet" type="text/css" />
		<style type="text/css">
<!--
.planSpan {
	padding-left: 10px;
}

.planDiv {
	border: #999 solid 1px;
	margin-top: 15px;
	color: #666;
	padding-left: 20px;
	padding-top: 20px;
	padding-right: 20px;
	height: 50px;
	width: 80%;
	font-size: 16px;
	color: #666;
}
-->
</style>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<script type="text/javascript" src="/ag/js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="/ag/lzw/js/jquery.cookie.js"></script>
		<script type="text/javascript" src="/ag/lzw/js/taskdetail.js"></script>

	</head>

	<body>
		<table width="100%" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td height="30">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="15" height="30">
								<img src="/ag/lzm/images/tab_03.gif" width="15" height="30" />
							</td>
							<td width="1101" background="/ag/lzm/images/tab_05.gif">
								<img src="lzm/images/311.gif" width="16" height="16" />
								<span class="STYLE4">药品查控信息表</span>
							</td>
							<td width="281" background="/ag/lzm/images/tab_05.gif">
								&nbsp;
							</td>
							<td width="14">
								<img src="/ag/lzm/images/tab_07.gif" width="14" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="9" background="/ag/lzm/images/tab_12.gif">
								&nbsp;
							</td>
							<td bgcolor="#dceffd">
								<div>
									<table width="99%" border="0" align="center" cellpadding="0"
										cellspacing="1" bgcolor="#84b1d3">
										<%
											Object obj = request.getAttribute("tmcs");
											List<TbMedicineConfirm> tmcs = (List<TbMedicineConfirm>) obj;
											String mName = tmcs.get(0).getMcName();
											String qUnit = tmcs.get(0).getTbQuantityUnit().getQuName();
										%>
										<thead>
											<tr>
												<td width="46%" height="38" bgcolor="#FFFFFF"
													class="planSpan" colspan="5">
													药品名称：
													<span class="planSpan"><%=mName%></span> (单位:
													<span class="planSpan"><%=qUnit%></span>)
												</td>
											</tr>
											<tr>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													任务名称：
													<span class="planSpan"></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													药品已查处数量：
													<span class="planSpan" id="cNum"></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													药品已封存数目：
													<span class="planSpan" id="mNum"></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													药品已销毁数目：
													<span class="planSpan" id="dNum"></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													药品流失数量：
													<span class="planSpan" id="wNum"></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													上报时间:
													<span class="planSpan" id="wNum"></span>
												</td>
											</tr>
										</thead>

										<tbody id="mctable">
											<%
												for (TbMedicineConfirm tmc : tmcs) {
											%>
											<tr>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													<span class="planSpan"><%=tmc.getTbTask().getTName()%></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													<span class="cNum"><%=tmc.getMcCnum() %></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													<span class="mNum"><%=tmc.getMcMnum() %></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													<span class="dNum"><%=tmc.getMcDnum() %></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													<span class="wNum"><%=tmc.getMcWnum() %></span>
												</td>
												<td height="38" bgcolor="#FFFFFF" class="planSpan">
													<span class="planSpan"><%=DateHandeler.DateToString(tmc.getMcTime())%></span>
												</td>
											</tr>
											<%
												}
											%>
										</tbody>

										<tr>
											<td height="38" colspan="2" bgcolor="#FFFFFF"
												class="planSpan">
												&nbsp;
											</td>
										</tr>
									</table>
								</div>
								<div>
									<table>
										<tr>
											<td height="38" bgcolor="#FFFFFF" class="planSpan">
												<input type="button" name="mc" id="mcSubmit"
													style="font-size: 20px; width: 90px; height: 40px;"
													value="提交">
											</td>
											<td height="38" bgcolor="#FFFFFF" class="planSpan">
												<input type="button" name="mc" id="mcSum"
													style="font-size: 20px; width: 90px; height: 40px;"
													value="数据汇总">
											</td>
										</tr>
									</table>

								</div>
							</td>
							<td width="9" background="/ag/lzm/images/tab_16.gif">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="29">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="15" height="29">
								<img src="/ag/lzm/images/tab_20.gif" width="15" height="29" />
							</td>
							<td background="/ag/lzm/images/tab_21.gif">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="25%" height="29" nowrap="nowrap">
											&nbsp;
										</td>
									</tr>
								</table>
							</td>
							<td width="14">
								<img src="/ag/lzm/images/tab_22.gif" width="14" height="29" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>

	</body>
</html>
